package service;

import dao.ClassroomDao;
import dao.ClassroomDaoImpl;
import pojo.Classroom;

import java.util.ArrayList;

public class ClassroomServiceImpl implements ClassroomService{

    private ClassroomDao dao = new ClassroomDaoImpl();

    @Override
    public ArrayList<Classroom> findAll() {
        return dao.findAll();
    }

    @Override
    public Classroom findById(Integer classId) {
        return dao.findById(classId);
    }

    @Override
    public Classroom findByName(String name) {
        return dao.findByName(name);
    }

    @Override
    public boolean findByIdReturnBoolean(Integer classId) {
        return dao.findByIdReturnBoolean(classId);
    }

    @Override
    public int insert(Classroom classroom) {
        return dao.insert(classroom);
    }

    @Override
    public int update(Classroom classroom) {
        return dao.update(classroom);
    }

    /*@Override
    public int delete(Classroom classroom) {
        return dao.delete(classroom);
    }*/
}
